<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file = "../taglib.jsp" %>
<!DOCTYPE>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>支付成功页面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="gkjk">

    <!-- Site CSS -->
    <link href="${pageContext.request.contextPath}/res/css/jf360.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/res/js/jquery-1.3.2.min.js"></script>
</head>
<body>
<input type="hidden" id='pageUrl' name='pageUrl' value="${page_url }" />
    <div class="jf">
        <div class="jf-pay">
            <div class="jf-pay-succcess-title">
                <div class="jf-pay-icon">√</div>
                <div class="jf-pay-tip">支付成功！</div>
            </div>
            <div class="jf-pay-divide"></div>
            <div class="jf-pay-succcess-content">
                <p class="jf-pay-succcess">您的订单号：${out_order_id }</p>
                <p class="jf-pay-succcess">支付方式：积分兑换</p>
                <p class="jf-pay-succcess">支付金额：${pay_amount }元</p>
                <c:if test="${page_url!=null and page_url!=''}">
                	<p class="jf-pay-succcess">页面跳转中......</p>
                </c:if>
                
            </div>
        </div>
    </div>
    <form name="form1" action="${page_url }" method="get">
		<c:forEach var="item" items="${responseMap}" varStatus="status">
		<input type="hidden" name='${item.key}' value='${item.value}' />
	 	</c:forEach>
	</form>
	<script type="text/javascript">
	//手机浏览器只能只用该方式获取表单中的值
	var pagrurl = $("#pageUrl").val();
	//var pagrurl = $("#pageUrl").attr("value");
	//pc端应使用该方式获取表单中的值
	 //var x = document.getElementsByName("pageUrl");
	if(pagrurl!=null&&pagrurl!=""){
		//3秒后跳转到商户
		setTimeout(function(){document.form1.submit();},3000);
	}
	
	</script> 
</body>
</html>